﻿Imports System.Windows.Forms
Imports X360

Public Class SelectProfile

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Me.Close()

        For Each selected In ListBox1.SelectedItems
            pathname = selected
            TransferProfiles()

        Next
        ftp.Disconnect()
        Me.DialogResult = System.Windows.Forms.DialogResult.OK

    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        ftp.Disconnect()
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

End Class
